﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestModule
{
    public partial class FilterDialog : Form
    {
        internal FilterType FilterType
        {
            get
            {
                if (rbLP.Checked) return FilterType.LowPass;
                if (rbHP.Checked) return FilterType.HighPass;
                if (rbBP.Checked) return FilterType.BandPass;
                if (rbBS.Checked) return FilterType.BandStop;
                return FilterType.None;
            }
        }

        public double MinFrequency
        {
            get
            {
                return double.Parse(tbFMin.Text);
            }
        }

        public double MaxFrequency
        {
            get
            {
                return double.Parse(tbFMax.Text);
            }
        }

        public FilterDialog()
        {
            InitializeComponent();
        }
    }

    internal enum FilterType
    {
        None,
        LowPass,
        HighPass,
        BandPass,
        BandStop
    }
}
